#!/usr/bin/env node

const fs = require('fs');
const src = process.argv[2];

if(!fs.existsSync(src)){
  console.log('%s NOT EXIST',src);
  process.exit(1);
}
if(!fs.statSync(src).isFile()){
  console.error('%s IS NOT A FILE',src);
  process.exit(2);
}
fs.unlinkSync(src);
